package com.dd.cloud.common.constants;

/**
 * redis key 值 常量
 *
 * @author Lx
 * @version 1.0
 */
public class RedisKeyConstants {

    /**
     * 处方图片key
     */
    public static final String PRES_IMG_BASE64_KEY = "image-Base64-";

    /**
     * 华润token
     */
    public static final String HR_TOKEN = "pharmacy-hr-token";

    /**
     * 处方详情redis key值
     */
    public final static String PRES_DETAIL_REDIS_KEY = "pres-detail-";
    /**
     * 医生检索患者信息次数key
     */
    public final static String DOCTOR_CHECK_PATIENT_KEY = "doctor_check_patient_key_";
    /**
     * 开放平台机构授权token-key
     */
    public final static String OPEN_API_MCH_TOKEN_KEY = "open_api_mch_token_";

    /**
     * 密码错误次数key
     */
    public final static String PWD_ERROR = "_pwd_error_";

    /**
     * 智尔康异常次数key
     */
    public final static String ZRK_ERROR = "zrk_error";

    /**
     * app推送消息成功收到防重key
     */
    public final static String APP_PROMOTION_RECEIVE_NUM = "app_promotion_receive_num";

    /**
     * app推送消息被点击防重key
     */
    public final static String APP_PROMOTION_CLICK_NUM = "app_promotion_click_num";

    public interface CacheKey {
        // 缓存权限的菜单key
        String TREEROLEMENU = "cache_roleId_menu";

        String ALLROLELIST = "cache_role_type_list";
        /**
         * 缓存验证的能访问uri的key
         */
        String AUTHROLEMENU = "auth_roleId_uri";

        /**
         * 微信access_token参数
         */
        String WX_ACCESS_TOKEN = "wx_access_token";

        /**
         * 医生access_token
         */
        String WX_DOCTOR_ACCESS_TOKEN = "wx_doctor_access_token";

        /**
         * 扫码登录
         */
        String SCAN_LOGIN_DOCTOR = "scan_login_doctor_timestamp:";
    }
}
